#include "labelmanager.h"

LabelManager LabelManager::manager;

// Removes label with <id> and returns it, or returns NULL if not found
void LabelManager::destroyById(int id)
{
    if (labels.contains(id))
    {
        labels[id]->deleteLater();
        labels.remove(id);
    }
}

